package com.lagou.edu.course.remote;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lagou.edu.course.dto.CourseDTO;
import com.lagou.edu.course.param.CourseQueryParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 程  林
 * @date 2021-01-31 16:50
 * @description //
 * @since V1.0.0
 */
@FeignClient(name = "edu-course-boot", path = "/course")
public interface CourseService {


    /**
     *
     * @param courseQueryParam
     * @return
     */
    @PostMapping("/queryCourseList")
    Page<CourseDTO> queryCourseList(@RequestBody CourseQueryParam courseQueryParam);

    @PostMapping("/addOrUpdateCourse")
    Boolean addOrUpdateCourse(@RequestBody CourseDTO courseDTO);

    @PostMapping("/updateCourseState")
    Object updateCourseState(@RequestBody CourseDTO courseDTO);
}
